package com.sq.universe.system.service.impl;

import com.sq.universe.base.service.impl.BaseServiceImpl;
import com.sq.universe.system.dao.DepartmentDao;
import com.sq.universe.system.entity.DepartmentEntity;
import com.sq.universe.system.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 孙乾 2020-08-27 21:01:08
*/
@Service
public class DepartmentServiceImpl extends BaseServiceImpl<DepartmentEntity, DepartmentDao> implements DepartmentService {

    @Autowired
    private DepartmentDao departmentDao;

    /**
     * 查询树状数据
     * @return
     */
    public List<DepartmentEntity> queryTree(DepartmentEntity departmentEntity){
        return departmentDao.queryTree(departmentEntity);
    }

}
